<?php
$section = 'parameter';
$titre = _LB_PARAMETER;
$smarty->assign("titre", $titre);

$tabs = array(	PARAMETER_TYPE_SYSTEM => _LB_SYSTEM,
				PARAMETER_TYPE_CONTACT => _LB_CONTACT,
				PARAMETER_TYPE_META_TAG => _LB_META_TAG,
            );  

$category = Request::getIntNumber('category')>count($tabs)||!Request::getIntNumber('category')?1:Request::getIntNumber('category');

$references = array();

// Prepare parameters
$param = new Parameter();
$param->CATEGORY = $category;
$param->orderBy('ID');
$param->find();

$cfer = new Cfer(array(
			_LB_ACCUEIL => Utils::getHomeLink(),
			_LB_PARAMETER.' : '.$tabs[$category] =>Utils::getCurrentLink()
		)
	);

$smarty->assign("references", $references);
$smarty->assign("cfer", $cfer);
$smarty->assign("param",$param);
$smarty->assign("category",$category);
$smarty->assign("tabs",$tabs);
$smarty->assign("numtabs",count($tabs));
$smarty->display('parameter_list.html');
